package org.whuims.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Created by Qikai on 2016/11/10.
 */
@Entity
@Table(name = "std_term")
public class Term extends IdEntity {
    private String termCn;
    private String termEn;
    private String description;
    private Standard std;
    private String context;

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getTermCn() {
        return termCn;
    }

    public void setTermCn(String termCn) {
        this.termCn = termCn;
    }

    public String getTermEn() {
        return termEn;
    }

    public void setTermEn(String termEn) {
        this.termEn = termEn;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @ManyToOne()
    @JoinColumn(name = "std_id")
    public Standard getStd() {
        return std;
    }

    public void setStd(Standard std) {
        this.std = std;
    }
}
